﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.ObustavaNaknada"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class ObustavaNaknadaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// ComboBox for the IDBankovniRacun property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDBankovniRacun;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDBankovniRacun property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDBankovniRacunLabel;
		
		/// <summary>
		/// ComboBox for the IDOrganizacijskaJedinica property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOrganizacijskaJedinica;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOrganizacijskaJedinica property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOrganizacijskaJedinicaLabel;
		
		/// <summary>
		/// TextBox for the OpisPlacanja property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOpisPlacanja;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OpisPlacanja property.
		/// </summary>
		protected System.Windows.Forms.Label uxOpisPlacanjaLabel;
		
		/// <summary>
		/// TextBox for the Iznos property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIznos;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Iznos property.
		/// </summary>
		protected System.Windows.Forms.Label uxIznosLabel;
		
		/// <summary>
		/// TextBox for the Model property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxModel;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Model property.
		/// </summary>
		protected System.Windows.Forms.Label uxModelLabel;
		
		/// <summary>
		/// TextBox for the PozivNaBroj property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPozivNaBroj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the PozivNaBroj property.
		/// </summary>
		protected System.Windows.Forms.Label uxPozivNaBrojLabel;
		
		/// <summary>
		/// TextBox for the Uzrok property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxUzrok;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Uzrok property.
		/// </summary>
		protected System.Windows.Forms.Label uxUzrokLabel;
		
		/// <summary>
		/// TextBox for the Napomena property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNapomena;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Napomena property.
		/// </summary>
		protected System.Windows.Forms.Label uxNapomenaLabel;
		
		/// <summary>
		/// ComboBox for the IDObustavaNaknadaTip property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDObustavaNaknadaTip;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDObustavaNaknadaTip property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDObustavaNaknadaTipLabel;
		
		/// <summary>
		/// ComboBox for the IDObracunOsoba property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDObracunOsoba;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDObracunOsoba property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDObracunOsobaLabel;
		
		/// <summary>
		/// DataTimePicker for the Datum property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatum;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Datum property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumLabel;
		#endregion
		
		#region Main entity
		private Entities.ObustavaNaknada _ObustavaNaknada;
		/// <summary>
		/// Gets or sets the <see cref="Entities.ObustavaNaknada"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.ObustavaNaknada"/> instance.</value>
		public Entities.ObustavaNaknada ObustavaNaknada
		{
			get {return this._ObustavaNaknada;}
			set
			{
				this._ObustavaNaknada = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDBankovniRacun.DataBindings.Clear();
			this.uxIDBankovniRacun.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDBankovniRacun", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOrganizacijskaJedinica.DataBindings.Clear();
			this.uxIDOrganizacijskaJedinica.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOrganizacijskaJedinica", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOpisPlacanja.DataBindings.Clear();
			this.uxOpisPlacanja.DataBindings.Add("Text", this.uxBindingSource, "OpisPlacanja", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIznos.DataBindings.Clear();
			this.uxIznos.DataBindings.Add("Text", this.uxBindingSource, "Iznos", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxModel.DataBindings.Clear();
			this.uxModel.DataBindings.Add("Text", this.uxBindingSource, "Model", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPozivNaBroj.DataBindings.Clear();
			this.uxPozivNaBroj.DataBindings.Add("Text", this.uxBindingSource, "PozivNaBroj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxUzrok.DataBindings.Clear();
			this.uxUzrok.DataBindings.Add("Text", this.uxBindingSource, "Uzrok", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNapomena.DataBindings.Clear();
			this.uxNapomena.DataBindings.Add("Text", this.uxBindingSource, "Napomena", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDObustavaNaknadaTip.DataBindings.Clear();
			this.uxIDObustavaNaknadaTip.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDObustavaNaknadaTip", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDObracunOsoba.DataBindings.Clear();
			this.uxIDObracunOsoba.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDObracunOsoba", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatum.DataBindings.Clear();
			this.uxDatum.DataBindings.Add("Value", this.uxBindingSource, "Datum", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="ObustavaNaknadaEditControlBase"/> class.
		/// </summary>
		public ObustavaNaknadaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_ObustavaNaknada != null) _ObustavaNaknada.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxIDBankovniRacun = new System.Windows.Forms.ComboBox();
			uxIDBankovniRacunLabel = new System.Windows.Forms.Label();
			this.uxIDOrganizacijskaJedinica = new System.Windows.Forms.ComboBox();
			uxIDOrganizacijskaJedinicaLabel = new System.Windows.Forms.Label();
			this.uxOpisPlacanja = new System.Windows.Forms.TextBox();
			uxOpisPlacanjaLabel = new System.Windows.Forms.Label();
			this.uxIznos = new System.Windows.Forms.TextBox();
			uxIznosLabel = new System.Windows.Forms.Label();
			this.uxModel = new System.Windows.Forms.TextBox();
			uxModelLabel = new System.Windows.Forms.Label();
			this.uxPozivNaBroj = new System.Windows.Forms.TextBox();
			uxPozivNaBrojLabel = new System.Windows.Forms.Label();
			this.uxUzrok = new System.Windows.Forms.TextBox();
			uxUzrokLabel = new System.Windows.Forms.Label();
			this.uxNapomena = new System.Windows.Forms.TextBox();
			uxNapomenaLabel = new System.Windows.Forms.Label();
			this.uxIDObustavaNaknadaTip = new System.Windows.Forms.ComboBox();
			uxIDObustavaNaknadaTipLabel = new System.Windows.Forms.Label();
			this.uxIDObracunOsoba = new System.Windows.Forms.ComboBox();
			uxIDObracunOsobaLabel = new System.Windows.Forms.Label();
			this.uxDatum = new System.Windows.Forms.DateTimePicker();
			uxDatumLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxIDBankovniRacunLabel
			//
			this.uxIDBankovniRacunLabel.Text = "IDBankovniRacun:";
			this.uxIDBankovniRacunLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDBankovniRacunLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBankovniRacunLabel);			
			//
			// uxIDBankovniRacun
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDBankovniRacun);
			this.uxIDBankovniRacun.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDBankovniRacun);
			//
			// uxIDOrganizacijskaJedinicaLabel
			//
			this.uxIDOrganizacijskaJedinicaLabel.Text = "IDOrganizacijskaJedinica:";
			this.uxIDOrganizacijskaJedinicaLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxIDOrganizacijskaJedinicaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOrganizacijskaJedinicaLabel);			
			//
			// uxIDOrganizacijskaJedinica
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOrganizacijskaJedinica);
			this.uxIDOrganizacijskaJedinica.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxIDOrganizacijskaJedinica);
			//
			// uxOpisPlacanjaLabel
			//
			this.uxOpisPlacanjaLabel.Text = "OpisPlacanja:";
			this.uxOpisPlacanjaLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxOpisPlacanjaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOpisPlacanjaLabel);			
			//
			// uxOpisPlacanja
			//
			this.uxOpisPlacanja.Width = 250;
			this.uxOpisPlacanja.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOpisPlacanja);
			this.uxOpisPlacanja.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxOpisPlacanja);
			//
			// uxIznosLabel
			//
			this.uxIznosLabel.Text = "Iznos:";
			this.uxIznosLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxIznosLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIznosLabel);			
			//
			// uxIznos
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIznos);
			this.uxIznos.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxIznos);
			//
			// uxModelLabel
			//
			this.uxModelLabel.Text = "Model:";
			this.uxModelLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxModelLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxModelLabel);			
			//
			// uxModel
			//
			this.uxModel.Width = 250;
			this.uxModel.MaxLength = 2;
			//this.uxTableLayoutPanel.Controls.Add(this.uxModel);
			this.uxModel.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxModel);
			//
			// uxPozivNaBrojLabel
			//
			this.uxPozivNaBrojLabel.Text = "PozivNaBroj:";
			this.uxPozivNaBrojLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxPozivNaBrojLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPozivNaBrojLabel);			
			//
			// uxPozivNaBroj
			//
			this.uxPozivNaBroj.Width = 250;
			this.uxPozivNaBroj.MaxLength = 23;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPozivNaBroj);
			this.uxPozivNaBroj.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxPozivNaBroj);
			//
			// uxUzrokLabel
			//
			this.uxUzrokLabel.Text = "Uzrok:";
			this.uxUzrokLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxUzrokLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxUzrokLabel);			
			//
			// uxUzrok
			//
			this.uxUzrok.Width = 250;
			this.uxUzrok.MaxLength = 20;
			//this.uxTableLayoutPanel.Controls.Add(this.uxUzrok);
			this.uxUzrok.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxUzrok);
			//
			// uxNapomenaLabel
			//
			this.uxNapomenaLabel.Text = "Napomena:";
			this.uxNapomenaLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxNapomenaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomenaLabel);			
			//
			// uxNapomena
			//
			this.uxNapomena.Width = 250;
			this.uxNapomena.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNapomena);
			this.uxNapomena.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxNapomena);
			//
			// uxIDObustavaNaknadaTipLabel
			//
			this.uxIDObustavaNaknadaTipLabel.Text = "IDObustavaNaknadaTip:";
			this.uxIDObustavaNaknadaTipLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxIDObustavaNaknadaTipLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDObustavaNaknadaTipLabel);			
			//
			// uxIDObustavaNaknadaTip
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDObustavaNaknadaTip);
			this.uxIDObustavaNaknadaTip.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxIDObustavaNaknadaTip);
			//
			// uxIDObracunOsobaLabel
			//
			this.uxIDObracunOsobaLabel.Text = "IDObracunOsoba:";
			this.uxIDObracunOsobaLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxIDObracunOsobaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDObracunOsobaLabel);			
			//
			// uxIDObracunOsoba
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDObracunOsoba);
			this.uxIDObracunOsoba.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxIDObracunOsoba);
			//
			// uxDatumLabel
			//
			this.uxDatumLabel.Text = "Datum:";
			this.uxDatumLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxDatumLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumLabel);			
			//
			// uxDatum
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatum);
			this.uxDatum.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxDatum);
			//
			// uxIDObustavaNaknadaTip
			//				
			this.uxIDObustavaNaknadaTip.DisplayMember = "Naziv";	
			this.uxIDObustavaNaknadaTip.ValueMember = "ID";	
			//
			// uxIDOrganizacijskaJedinica
			//				
			this.uxIDOrganizacijskaJedinica.DisplayMember = "Naziv";	
			this.uxIDOrganizacijskaJedinica.ValueMember = "ID";	
			//
			// uxIDObracunOsoba
			//				
			this.uxIDObracunOsoba.DisplayMember = "IDOsoba";	
			this.uxIDObracunOsoba.ValueMember = "ID";	
			//
			// uxIDBankovniRacun
			//				
			this.uxIDBankovniRacun.DisplayMember = "BrojRacuna";	
			this.uxIDBankovniRacun.ValueMember = "ID";	
			// 
			// ObustavaNaknadaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "ObustavaNaknadaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.ObustavaNaknadaTip> _IDObustavaNaknadaTipList;
		
		/// <summary>
		/// The ComboBox associated with the IDObustavaNaknadaTip property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.ObustavaNaknadaTip> IDObustavaNaknadaTipList
		{
			get {return _IDObustavaNaknadaTipList;}
			set 
			{
				this._IDObustavaNaknadaTipList = value;
				this.uxIDObustavaNaknadaTip.DataSource = null;
				this.uxIDObustavaNaknadaTip.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDObustavaNaknadaTipList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDObustavaNaknadaTip property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDObustavaNaknadaTipList
		{
			get { return _allowNewItemInIDObustavaNaknadaTipList;}
			set
			{
				this._allowNewItemInIDObustavaNaknadaTipList = value;
				this.uxIDObustavaNaknadaTip.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OrganizacijskaJedinica> _IDOrganizacijskaJedinicaList;
		
		/// <summary>
		/// The ComboBox associated with the IDOrganizacijskaJedinica property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OrganizacijskaJedinica> IDOrganizacijskaJedinicaList
		{
			get {return _IDOrganizacijskaJedinicaList;}
			set 
			{
				this._IDOrganizacijskaJedinicaList = value;
				this.uxIDOrganizacijskaJedinica.DataSource = null;
				this.uxIDOrganizacijskaJedinica.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOrganizacijskaJedinicaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOrganizacijskaJedinica property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOrganizacijskaJedinicaList
		{
			get { return _allowNewItemInIDOrganizacijskaJedinicaList;}
			set
			{
				this._allowNewItemInIDOrganizacijskaJedinicaList = value;
				this.uxIDOrganizacijskaJedinica.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.ObracunOsoba> _IDObracunOsobaList;
		
		/// <summary>
		/// The ComboBox associated with the IDObracunOsoba property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.ObracunOsoba> IDObracunOsobaList
		{
			get {return _IDObracunOsobaList;}
			set 
			{
				this._IDObracunOsobaList = value;
				this.uxIDObracunOsoba.DataSource = null;
				this.uxIDObracunOsoba.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDObracunOsobaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDObracunOsoba property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDObracunOsobaList
		{
			get { return _allowNewItemInIDObracunOsobaList;}
			set
			{
				this._allowNewItemInIDObracunOsobaList = value;
				this.uxIDObracunOsoba.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OsobaBankovniRacun> _IDBankovniRacunList;
		
		/// <summary>
		/// The ComboBox associated with the IDBankovniRacun property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OsobaBankovniRacun> IDBankovniRacunList
		{
			get {return _IDBankovniRacunList;}
			set 
			{
				this._IDBankovniRacunList = value;
				this.uxIDBankovniRacun.DataSource = null;
				this.uxIDBankovniRacun.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDBankovniRacunList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDBankovniRacun property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDBankovniRacunList
		{
			get { return _allowNewItemInIDBankovniRacunList;}
			set
			{
				this._allowNewItemInIDBankovniRacunList = value;
				this.uxIDBankovniRacun.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
